package com.saile.util;

import java.io.File;
import java.util.UUID;

/**
 * Created by Andrew  on 2016/11/6.
 */
public class FileTools {
    public static final String PICTURE_SUFFIX_JPG = ".jpg";
    public static boolean makeDir(String path){
        boolean flag=false;
        File file=new File(path);
        if (!file.isDirectory()){
            file.mkdirs();
            flag=true;
        }
        return flag;
    }
    public static String getUniquenessName(String phone){
        return phone+"/"+UUID.randomUUID().toString().toUpperCase();
    }
    public static String getUniquenessFolder(String phone){
        return phone+"/";
    }
}
